<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>无标题文档</title>
		<link href="<%=request.getContextPath()%>/css/bgcss.css"
			rel="stylesheet" type="text/css" />
			<script src="<%=request.getContextPath()%>/tools/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
			<script type="text/javascript">
		function check(){		
			/*var admin=document.adminform;
			if(){
				alert("请填写管理员登陆帐号");
				admin.admin_login_name.focus();
				return false;
					
			}

			else{
				return true;
			}			*/
			return true;
		}
	</script>
	</head>

	<body>
		<jsp:include page="../frame/right_top.jsp" flush="true" />
		<div id="right_font"><img src="<%=request.getContextPath()%>/images/bg/main_14.gif"/> 您现在所在的位置：首页 &gt;&gt; 车辆管理 &gt;&gt; 添加车辆花费记录 </div>
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="30">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td>
								&nbsp;
							</td>
							<td style="padding-right: 10px;">
								<div align="right">
									<table border="0" align="right" cellpadding="0" cellspacing="0">
										<tr>
											<td width="60">
												<table width="87%" border="0" cellpadding="0"
													cellspacing="0">
													<tr>
													</tr>
												</table>
											</td>
											<td width="60">
												<table width="90%" border="0" cellpadding="0"
													cellspacing="0">
													<tr>
													</tr>
												</table>
											</td>
											<td width="60">
												<table width="90%" border="0" cellpadding="0"
													cellspacing="0">
													<tr>
													</tr>
												</table>
											</td>
											<td width="52">
												<table width="88%" border="0" cellpadding="0"
													cellspacing="0">
													<tr>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</div>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td>
				<form action="<%=request.getContextPath()%>/background/car?method=insertCarPay" name="form"
			method="post" onsubmit="return check();">
					<table width="60%" border="0" cellpadding="0" cellspacing="1"
						bgcolor="#c9c9c9">
						<tr>
							<td height="22" width="120" bgcolor="#FFFFFF">
								<div align="center">
									<strong><span class="STYLE1">车牌号</span> </strong>
								</div>
							</td>
							<td bgcolor="#FFFFFF">	
								<input type="hidden" name="Car_Id" value="<%=request.getParameter("Car_Id") %>"/>						
								<%String str=request.getParameter("Car_NO");
									str=new String(str.getBytes("iso8859-1"),"UTF-8");
								%>
								<%=str %>
							</td>
						</tr>
							<tr>
							<td height="22" width="120" bgcolor="#FFFFFF">
								<div align="center">
									<strong><span class="STYLE1">花费类型</span> </strong>
								</div>
							</td>
						<td bgcolor="#FFFFFF">
						<select name="CarPay_Type" onchange="display();">
							<option value="0">
								==请选择==
							</option>
							<option value="1">
								加油
							</option>
							<option value="2">
								维修
							</option>
							<option value="3">
								保养
							</option>
							<option value="4">
								其它
							</option>
						</select>
						<div id="oil" style="display:none;">
						共加油<input type="text" name="CarPay_OilCount" size="2" maxlength="4" />升
						</div>
						<script type="text/javascript">
						function display(){			
							if(document.form.CarPay_Type.value==1){
								document.getElementById('oil').style.display="block";
							}else{
								document.getElementById('oil').style.display="none";
							}
						}
						</script>
						</td>
						</tr>
						<tr>
							<td height="22" width="120" bgcolor="#FFFFFF">
								<div align="center">
									<strong><span class="STYLE1">花费内容</span> </strong>
								</div>
							</td>
							<td bgcolor="#FFFFFF">
								<textarea rows="6" cols="50" name="CarPay_Content"></textarea>
							</td>				
						</tr>	
						
						
						<tr>
							<td height="22" width="120" bgcolor="#FFFFFF">
								<div align="center">
									<strong><span class="STYLE1">费用</span> </strong>
								</div>
							</td>
							<td bgcolor="#FFFFFF">
							<input type="text" name="CarPay_Pay" size="15"
									maxlength="20" />元
							</td>				
						</tr>
						
															<tr>
							<td height="22" width="120" bgcolor="#FFFFFF">
								<div align="center">
									<strong><span class="STYLE1">时间</span> </strong>
								</div>
							</td>
							<td bgcolor="#FFFFFF">
						<input type="text" name="time" class="Wdate" size="20"	maxlength="20" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false,readOnly:true});"/>	
						<script>				
			document.getElementById('time').value=new Date().getFullYear()+"-"+(new Date().getMonth()+1)+"-"+new Date().getDate()+" "+new Date().getHours()+":"+new Date().getMinutes()+":"+new Date().getSeconds();
		</script>
							</td>				
						</tr>		
							<tr>
							<td height="22" width="120" bgcolor="#FFFFFF">
								<div align="center">
									<strong><span class="STYLE1">备注</span> </strong>
								</div>
							</td>
							<td bgcolor="#FFFFFF">
								<textarea rows="3" cols="30" name="CarPay_Remark"></textarea>
							</td>				
						</tr>	
						<tr>
						
							<td height="22" bgcolor="#FFFFFF" colspan="2">
							<div align="center">
							<input type="submit" value="确认" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="button" value="返回" onclick="javascript:history.go(-1);"/>
							</div>
							</td>
							
						</tr>					
					</table>
					</form>
				</td>
			</tr>
		</table>
	</body>
</html>
